<#include "/common/include.html"/>
<@pageTheme mark="${config.optimize()?string('true', 'false')}">
<@header title="修改销售订单">
</@header>
<@addorEdit fromId="form-saleorder-edit">
    <input name="id" value="${bpmCrmSaleorder.id}" type="hidden">
    <div class="form-group">
        <label class="col-sm-3 control-label"><@ctx.i18n text = "销售员">：                
       </label>
        <div class="col-sm-8"><input name="salePerson" value="${bpmCrmSaleorder.salePerson?default("")}" class="form-control" type="text" >                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><@ctx.i18n text = "销售组">：                
       </label>
        <div class="col-sm-8"><input name="saleTeam" value="${bpmCrmSaleorder.saleTeam?default("")}" class="form-control" type="text" >                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><@ctx.i18n text = "销售经理">：                
       </label>
        <div class="col-sm-8"><input name="saleManager" value="${bpmCrmSaleorder.saleManager?default("")}" class="form-control" type="text" >                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><@ctx.i18n text = "订单状态"/>：</label>
        <div class="col-sm-8">
            <select name="saleStatus" class="form-control m-b">
                <#list dict.getType('saleorder_status')>
                    <#items as d>
                        <#if d.status =='0' >
                           <option  value="${d.dictValue}" text="${d.dictLabel}" <#if d.dictValue==bpmCrmSaleorder.saleStatus?default("") >selected = "selected"</#if>>${d.dictLabel}</option>
                        </#if>
                    </#items>
                 </#list>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "客户名称">：                                
       </label>
        <div class="col-sm-8"><input name="saleCustomername" value="${bpmCrmSaleorder.saleCustomername?default("")}" class="form-control" type="text"  required>                                                 <span class="help-block m-b-none"><i class="fa fa-info-circle" style="color: red"></i>请填写客户名称</span>
                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "客户地址">：                                
       </label>
        <div class="col-sm-8"><input name="saleAddress" value="${bpmCrmSaleorder.saleAddress?default("")}" class="form-control" type="text"  required>                                                 <span class="help-block m-b-none"><i class="fa fa-info-circle" style="color: red"></i>请填写客户地址</span>
                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "客户手机号">：                                
       </label>
        <div class="col-sm-8"><input name="salePhone" value="${bpmCrmSaleorder.salePhone?default("")}" class="form-control" type="text"  required>                                                 <span class="help-block m-b-none"><i class="fa fa-info-circle" style="color: red"></i>请填写手机号</span>
                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "客户邮箱">：                                
       </label>
        <div class="col-sm-8"><input name="saleEmail" value="${bpmCrmSaleorder.saleEmail?default("")}" class="form-control" type="text"  required>                                                 <span class="help-block m-b-none"><i class="fa fa-info-circle" style="color: red"></i>请填写邮箱</span>
                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "客户微信">：                                
       </label>
        <div class="col-sm-8"><input name="saleWechat" value="${bpmCrmSaleorder.saleWechat?default("")}" class="form-control" type="text"  required>                                                 <span class="help-block m-b-none"><i class="fa fa-info-circle" style="color: red"></i>请填写微信</span>
                                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "ID"/>：</label>
        <div class="col-sm-8">
            <#list dict.getType('sale_id_status')>
                <#items as d>
                    <div class="radio-box">
                        <input type="radio" id="saleId" name="saleId" value="${d.dictValue}"
                               <#if d.dictValue == bpmCrmSaleorder.saleId?default("") >checked</#if>  required/>
                        <label for="${d.dictCode}">${d.dictLabel}</label>
                    </div>
                </#items>
            </#list>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><@ctx.i18n text = "驾照">：                
       </label>
        <div class="col-sm-8"><input name="saleDriverlicense" value="${bpmCrmSaleorder.saleDriverlicense?default("")}" class="form-control" type="text" >                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><@ctx.i18n text = "护照">：                
       </label>
        <div class="col-sm-8"><input name="salePassport" value="${bpmCrmSaleorder.salePassport?default("")}" class="form-control" type="text" >                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "房产信息">：                
       </label>
        <div class="col-sm-8"><input name="saleResidenceinfo" value="${bpmCrmSaleorder.saleResidenceinfo?default("")}" class="form-control" type="text"  required>                
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><@ctx.i18n text = "备注"/>：</label>
        <div class="col-sm-8">
            <textarea name="remark" class="form-control">${bpmCrmSaleorder.remark?default("")}</textarea>
        </div>
    </div>
</@addorEdit>
<@footer>
<script type="text/javascript">
    var prefix = baseURL + "bpm/saleorder";
    $("#form-saleorder-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if (opt.validate.form()) {
            opt.operate.save(prefix + "/edit", $('#form-saleorder-edit').serialize());
        }
    }
</script>
</@footer>
</@pageTheme>
